Make map_domain_page_global fail
authorJeremy Fitzhardinge <jeremy@xensource.com>
Thu, 24 May 2007 09:45:03 +0000 (10:45 +0100)
committerJeremy Fitzhardinge <jeremy@xensource.com>
Thu, 24 May 2007 09:45:03 +0000 (10:45 +0100)
commit8a981e0bf25e64ba0705e9ce6511a32604078be4
tree39f0825cd9681ec6234d68d2864963237f5acc46
parentfab51b46ae28d30db5195aaa146df2403b2cd3bc
Make map_domain_page_global fail

When the global mapping cache runs out, make map_domain_page_global
return NULL on failure rather than fire an assertion failure.  This
also updates the callers to handle the error gracefully.

The only exception to this is the shadow pagetable code, which uses
map_domain_page_global to create a mapping for
v->arch.paging.shadow.guest_vtable; it's not clear this needs to be a
global mapping anyway.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
xen/arch/x86/hvm/vlapic.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/x86_32/domain_page.c